package cn.kgc.spring.entity;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author: mosin
 * @version: v1.0  2022/10/12
 */
//  id = teacher
@Component
public class Teacher {

    @Value("${id}")
    private Integer id;
    @Value("${name}")
    private String name;

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
